package com.jay.codec.utils

/**
 * @author xuzhou4
 * @date 2022/1/7
 */
object IntUtils {

    fun getInt(anInt: Int, startIndex: Int, len: Int): Int {
        return (anInt shr startIndex) and ((1 shl len) - 1)
    }

    @JvmStatic
    fun main(args: Array<String>) {
        print("main ${getInt(9999, 1, 8)}")
    }
}